package com.xinhua.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xinhua.entity.Major;
import com.xinhua.repository.MajorRep;

@Component
public class MajorService {
	@Autowired
	private MajorRep majorRep;
	
	public List<Major> getMajor(){
		return (List<Major>) majorRep.findAll();
	}
}
